﻿using ChatLibrary.ChatDTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace Chat.Helpers
{
    public static class UsersManager
    {
        public static Dictionary<string, User> Users { get; set; }

        static UsersManager()
        {
            Users = new Dictionary<string, User>();
        }

        public static List<User> GetUsersList()
        {
            var usersList = new List<User>();

            foreach (var item in Users)
            {
                usersList.Add(item.Value);
            }

            return usersList;
        }
    }
}